package com.qidian.buy.product.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * Author: 戴着假发的程序员
 * Date: 2023-06-20 14:04
 * company: 起点编程
 * Description:
 **/
@Configuration
public class RestaurantWebMvcConfig implements WebMvcConfigurer {
    @Override
    public void addCorsMappings(CorsRegistry registry) {
        registry.addMapping("/**");
    }
}
